package com.fund.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fund.common.pojo.Result;
import com.fund.order.pojo.dto.OrderDTO;
import com.fund.api.entity.TradeOrder;
import com.fund.order.pojo.vo.OrderVO;

import java.util.List;

public interface OrderService extends IService<TradeOrder> {
    Result<OrderVO> purchaseFund(OrderDTO orderDTO);

    Result<List<OrderVO>> redemptionFund(OrderDTO orderDTO);

    Result<Boolean> confirmAllOrders();

    Result<Boolean> dealAllRedemptionOrders();

    Result<Boolean> dealAllPerchaseOrders();
}
